Add AppArmor notice for Debian/Ubuntu users during server startup
authorOtto Kekäläinen <otto@debian.org>
Wed, 8 Apr 2026 15:32:51 +0000 (23:32 +0800)
committerOtto Kekäläinen <otto@debian.org>
Fri, 10 Apr 2026 10:10:10 +0000 (10:10 +0000)
commitc553658d2140c62335ba159963fe0d3bb2017aea
tree2ecff7caa7352472f071fbc3e3ed078dd663d4f5
parenta82484547114166ca95bc01ce8e21a0441d787d0
Add AppArmor notice for Debian/Ubuntu users during server startup

When MariaDB fails to start due to permission errors, users on
Debian/Ubuntu might not be able to guess that AppArmor might be the
cause, and they should check for AppArmor denials in the kernel audit
log.

Add an informational message during startup that:
- Only prints when the 'mariadbd' profile is actually loaded
- Includes exact commands from the Debian packaging NEWS
- Provides actionable paths for local overrides
- Mentions both complain and enforce modes for troubleshooting

The message is printed once during normal server startup (not in help or
bootstrap modes) through the existing logging infrastructure, ensuring
it appears in both syslog and the error log where users will see it when
troubleshooting startup failures.

Gbp-Pq: Name Add-AppArmor-notice-for-Debian-Ubuntu-users-during-server.patch
sql/mysqld.cc